(function () {
    window.HIPRINT_CONFIG = {
        //optionItems: [hiprintCustomOptionItem],//自定义选项
        movingDistance: 1.5, //鼠标拖动一次移动的距离,默认1.5pt
        paperHeightTrim: 1, //纸张html 的高度等于真实高度-1
        text: any = {
            supportOptions: [{
                name: 'title',
                hidden: false
                },
                {
                name: 'field',
                hidden: false
	            },
	            {
                name: 'testData',
                hidden: false
	            },
	            {
                    name: 'textType',
                    hidden: false
                },
                {
                    name: 'barcodeMode',
                    hidden: false
                },
                {
                    name: 'fontFamily',
                    hidden: false
                },
                {
                    name: 'letterSpacing',
                    hidden: false
                },
                {
                    name: 'lineHeight',
                    hidden: false
                },
                {
                    name: 'fontSize',
                    hidden: false
                },
                {
                    name: 'color',
                    hidden: false
                },
                {
                    name: 'fontWeight',
                    hidden: false
                },
                {
                    name: 'hideTitle',
                    hidden: false
                },
                {
                    name: 'textDecoration',
                    hidden: false
                },
                {
                    name: 'backgroundColor',
                    hidden: false
                },
                {
                    name: 'transform',
                    hidden: false
                },
                {
                    name: 'textAlign',
                    hidden: false
                },
                {
                    name: 'textContentVerticalAlign',
                    hidden: false
                },
                {
                    name: 'borderLeft',
                    hidden: false
                },
                {
                    name: 'borderTop',
                    hidden: false
                },
                {
                    name: 'borderRight',
                    hidden: false
                },
                {
                    name: 'borderBottom',
                    hidden: false
                },
                {
                    name: 'borderColor',
                    hidden: false
                },
                {
                    name: 'borderWidth',
                    hidden: false
                }
            ],
            default: {
                width: 120,
                height: 9.75,
            }
        },
        image: any = {
            supportOptions: [{
                name: 'field',
                hidden: false
            },
            {
                name: 'src',
                hidden: false
            }
            ],
            default: {
                width: 48,
                height: 48,
            }
        },
        longText: {
            supportOptions: [{
                name: 'title',
                hidden: false
                },
                {
                name: 'field',
                hidden: false
	            },
	            {
                name: 'testData',
                hidden: false
	            },
	            {
                    name: 'textType',
                    hidden: false
                },
                {
                    name: 'barcodeMode',
                    hidden: false
                },
                {
                    name: 'fontFamily',
                    hidden: false
                },
                {
                    name: 'letterSpacing',
                    hidden: false
                },
                {
                    name: 'lineHeight',
                    hidden: false
                },
                {
                    name: 'fontSize',
                    hidden: false
                },
                {
                    name: 'color',
                    hidden: false
                },
                {
                    name: 'fontWeight',
                    hidden: false
                },
                {
                    name: 'hideTitle',
                    hidden: false
                },
                {
                    name: 'textDecoration',
                    hidden: false
                },
                {
                    name: 'backgroundColor',
                    hidden: false
                },
                {
                    name: 'transform',
                    hidden: false
                },
                {
                    name: 'textAlign',
                    hidden: false
                },
                {
                    name: 'longTextIndent',
                    hidden: false
                },
                {
                    name: 'borderLeft',
                    hidden: false
                },
                {
                    name: 'borderTop',
                    hidden: false
                },
                {
                    name: 'borderRight',
                    hidden: false
                },
                {
                    name: 'borderBottom',
                    hidden: false
                },
                {
                    name: 'borderColor',
                    hidden: false
                },
                {
                    name: 'borderWidth',
                    hidden: false
                }
            ],
            default: {
                height: 42,
                width: 100
            }
        },
        hline: any = {
            supportOptions: [{
                name: 'borderColor',
                hidden: false
            }, {
                name: 'borderWidth',
                hidden: false
            },
            {
                name: 'borderStyle',
                hidden: false
            }
            ],
            default: {
                borderWidth: 0.75,
                height: 9,
                width: 90
            }
        },
        vline: any = {
            supportOptions: [{
                name: 'borderColor',
                hidden: false
            }, {
                name: 'borderWidth',
                hidden: false
            },
            {
                name: 'borderStyle',
                hidden: false
            }
            ],
            default: {
                borderWidth: undefined,
                height: 90,
                width: 9
            }
        },
        rect: any = {
            supportOptions: [{
                name: 'borderColor',
                hidden: false
            }, {
                name: 'borderWidth',
                hidden: false
            },
            {
                name: 'borderStyle',
                hidden: false
            }
            ],
            default: {
                borderWidth: undefined,
                height: 90,
                width: 90
            }
        },
        oval: any = {
            supportOptions: [{
                name: 'borderColor',
                hidden: false
            }, {
                name: 'borderWidth',
                hidden: false
            },
            {
                name: 'borderStyle',
                hidden: false
            }
            ],
            default: {
                borderWidth: undefined,
                height: 90,
                width: 90
            }
        },
        html: any = {
            supportOptions: [{
                name: 'showInPage',
                hidden: false
            },
            {
                name: 'unShowInPage',
                hidden: false
            },
            {
                name: 'fixed',
                hidden: false
            },
            {
                name: 'axis',
                hidden: false
            },
            {
                name: 'formatter',
                hidden: false
            }
            ],
            default: {

                height: 90,
                width: 90
            }
        },
        tableColumn: any = {
            supportOptions: [
                {
                    name: 'title',
                    hidden: false
                },
                {
                    name: 'align',
                    hidden: false
                },
                {
                    name: 'halign',
                    hidden: false
                },
                {
                    name: 'vAlign',
                    hidden: false
                },
                {
                    name: 'paddingLeft',
                    hidden: false
                },
                {
                    name: 'paddingRight',
                    hidden: false
                },
                {
                    name: 'formatter2',
                    hidden: false
                }, {
                    name: 'styler2',
                    hidden: false
                }
            ],
            default: {
                height: 90,
                width: 90
            }
        }
    }
})();